﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OControlTicketAdd.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.OControlTicketAdd" %>
<div class="pageContent">
	<form id="Form1"  action="MacModel/OControlTicketAdd.aspx?ajaxmethod=add" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone);">
    <div class="pageFormContent" layoutH="56">   
            <table width="100%" style=" border-spacing: 5px!important;">
                <tr>
                    <td width="90px"><label>机型：</label></td>
                    <td colspan="3">
                        <%=GetMacType("checkbox", "MachineType", "")%>
                    </td>
                </tr>  
                <tr>
                    <td width="90px"><label>编号：</label></td>
                    <td width="200px">
                       <input type="text" name="TNO" class="required" alt="请输入编号"  />
                    </td>
                    <td width="90px"><label>设变号码：</label></td>
                    <td>
                       <input type="text" name="SetNumber " class="required" alt="请输入设变号码"   swidth="300"/>
                    </td>
                </tr>
                <tr>
                    <td width="90px"><label>供应商：</label></td>
                    <td colspan="3">
                       <input type="text" name="SupplierName" class="" alt="请输入供应商"  autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getsupplierlist&showtype=101" swidth="300"/>
                    </td>
                  
                </tr>
                <tr> 
                    <td width="90px"><label>管制理由：</label></td>
                    <td  colspan="3">
                     <%=GetControlReason("ControlReason") %>
                    </td>
                </tr> 
                <tr>
                    <td width="90px"><label>开出日期：</label></td>
                    <td width="200px">
                        <input type="text" name="OpenDate" class="date required" alt=""  />
                    </td>
                    <td width="90px"><label>核准日期：</label></td>
                    <td>
                         <input type="text" name="ApprovalDate" class="date required" alt=""  />
                    </td>
                </tr>           
            </table> 
            <div style="margin:2px 0px;" class="accordion">
		       <table width="100%" class="table">
                        <thead >
                            <tr>
                                <th>序号</th>
                                <th>零件号码</th>
                                <th>零件名称</th>
                                <th>数量</th>
                                <th>变更内容及注意事项</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>1</td>
                                <td><input type="text" name="ItemCode" value="" class="autocomplete2" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getoitmlist" swidth="300" showinputid="OControlTicketAdd_itemname1"/></td>
                                <td><input type="text" name="ItemName" value="" id="OControlTicketAdd_itemname1"/></td>
                                <td><input type="text" name="Quantity" value="1" /></td>
                                <td><input type="text" name="Note" value="" /></td>
                            </tr>
                            <tr>
                                <td>2</td>
                                <td><input type="text" name="ItemCode" value="" class="autocomplete2" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getoitmlist" swidth="300" showinputid="OControlTicketAdd_itemname2"/></td>
                                <td><input type="text" name="ItemName" value="" id="OControlTicketAdd_itemname2"/></td>
                                <td><input type="text" name="Quantity" value="1" /></td>
                                <td><input type="text" name="Note" value="" /></td>
                            </tr>
                            <tr>
                                <td>3</td>
                                <td><input type="text" name="ItemCode" value="" class="autocomplete2" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getoitmlist" swidth="300" showinputid="OControlTicketAdd_itemname3"/></td>
                                <td><input type="text" name="ItemName" value="" id="OControlTicketAdd_itemname3"/></td>
                                <td><input type="text" name="Quantity" value="1" /></td>
                                <td><input type="text" name="Note" value="" /></td>
                            </tr>
                            <tr>
                                <td>4</td>
                                <td><input type="text" name="ItemCode" value="" class="autocomplete2" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getoitmlist" swidth="300" showinputid="OControlTicketAdd_itemname4"/></td>
                                <td><input type="text" name="ItemName" value="" id="OControlTicketAdd_itemname4"/></td>
                                <td><input type="text" name="Quantity" value="1" /></td>
                                <td><input type="text" name="Note" value="" /></td>
                            </tr>
                            <tr>
                                <td>5</td>
                                <td><input type="text" name="ItemCode" value="" class="autocomplete2" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getoitmlist" swidth="300" showinputid="OControlTicketAdd_itemname5"/></td>
                                <td><input type="text" name="ItemName" value="" id="OControlTicketAdd_itemname5"/></td>
                                <td><input type="text" name="Quantity" value="1" /></td>
                                <td><input type="text" name="Note" value="" /></td>
                            </tr>
                            <tr>
                                <td>6</td>
                               <td><input type="text" name="ItemCode" value="" class="autocomplete2" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getoitmlist" swidth="300" showinputid="OControlTicketAdd_itemname6"/></td>
                                <td><input type="text" name="ItemName" value="" id="OControlTicketAdd_itemname6"/></td>
                                <td><input type="text" name="Quantity" value="1" /></td>
                                <td><input type="text" name="Note" value="" /></td>
                            </tr>
                            <tr>
                                <td>7</td>
                                <td><input type="text" name="ItemCode" value=""  class="autocomplete2" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getoitmlist" swidth="300" showinputid="OControlTicketAdd_itemname7"/></td>
                                <td><input type="text" name="ItemName" value="" id="OControlTicketAdd_itemname7"/></td>
                                <td><input type="text" name="Quantity" value="1" /></td>
                                <td><input type="text" name="Note" value="" /></td>
                            </tr>
                            <tr>
                                <td>8</td>
                                <td><input type="text" name="ItemCode" value=""  class="autocomplete2" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getoitmlist" swidth="300" showinputid="OControlTicketAdd_itemname8"/></td>
                                <td><input type="text" name="ItemName" value="" id="OControlTicketAdd_itemname8"/></td>
                                <td><input type="text" name="Quantity" value="1" /></td>
                                <td><input type="text" name="Note" value="" /></td>
                            </tr>
                            <tr>
                                <td>9</td>
                                <td><input type="text" name="ItemCode" value=""  class="autocomplete2" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getoitmlist" swidth="300" showinputid="OControlTicketAdd_itemname9"/></td>
                                <td><input type="text" name="ItemName" value="" id="OControlTicketAdd_itemname9"/></td>
                                <td><input type="text" name="Quantity" value="1" /></td>
                                <td><input type="text" name="Note" value="" /></td>
                            </tr>
                            <tr>
                                <td>10</td>
                                <td><input type="text" name="ItemCode" value=""  class="autocomplete2" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getoitmlist" swidth="300" showinputid="OControlTicketAdd_itemname10"/></td>
                                <td><input type="text" name="ItemName" value="" id="OControlTicketAdd_itemname10"/></td>
                                <td><input type="text" name="Quantity" value="1" /></td>
                                <td><input type="text" name="Note" value="" /></td>                                
                            </tr>                        
                        </tbody>
                    </table>                
            </div>
            <div style="margin:2px 0px;">
                <table width="100%" cellpadding="2" cellspacing="2">
                    <tr>
                        <td width="90px"  valign="top"><label>质量部判定：</label></td>
                        <td>
                           <label><input type="radio" name="QualityJudgement" value="可量试" />可量试</label>
                           <label><input type="radio" name="QualityJudgement" value="可量产" />可量产</label>
                           <label><input type="radio" name="QualityJudgement" value="暂停开发" />暂停开发</label>
                           <label><input type="radio" name="QualityJudgement" value="再试制" />再试制</label>
                           <label><input type="radio" name="QualityJudgement" value="再量试" />再量试</label>
                        </td>
                    </TR>
                    <tr>
                        <td width="90px"  valign="top"><label>管制机号：</label></td>
                        <td>
                            <textarea name="SerialNumber1" class="required" cols="80" rows="5"></textarea>
                        </td>
                    </TR>
                    <tr>
                        <td width="90px"  valign="top"><label>备注：</label></td>
                        <td>
                            <textarea name="Remark"  cols="80" rows="5"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>原件扫描上传：</td>
                        <td>
                              <input type="file" name="filedata" id="OControlTicketAdd_AttachmentFile_upload" uploadify="uploadify" onUploadSuccess="onAddOControlTicketUploadSuccess">
                              <input type="hidden" name="AttachmentFile" id="OControlTicketAdd_AttachmentFile" value="" />
                              <script type="text/javascript">
                                  function onAddOControlTicketUploadSuccess(file, data, response) {
                                      if (!response)
                                          return false;
                                      data = eval("(" + data + ")");
                                      if (!data.uploadResult) {
                                          alert(data.errMsg);
                                          return;
                                      }
                                      var $imgUploadPath = data.filePath;
                                      var $trageId = data.customerInfo;

                                      $("#OControlTicketAdd_AttachmentFile").val($imgUploadPath);
                                  }

                                
                            </script>
                        </td>
                    </tr>
                </table>
                  
            </div>
            
    </div>
    <div class="formBar">
   
			<ul>
				<li><div class="buttonActive"><div class="buttonContent">                 
                    <button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
       
	</form>
    </div>